﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    public abstract class Vehicle
    {
        public float V { get; set; }
        public Vehicle(float v) { V = v; }
        public virtual void Run(float d)
        {
            Console.WriteLine("行驶{0}公里用时{1}",d,d/V);
        }
        
    }
}
